#ifndef SIP_COMMON_MEDIA_H
#define SIP_COMMON_MEDIA_H
#include <vector>
#include <string>
#include "internal.h"
#include "Data.h"

#define NUM_MAX 50

class fileInfo {
public:
	fileInfo() {
		name = "";
		path = "";
		time = "";
		size = "";
	}
	std::string name;
	std::string path;
	std::string time;
	std::string	size;
};

struct rule {
	bool operator()(const fileInfo x, const fileInfo y) {
		return x.time < y.time;  //从小到大
	}
};

#define MAX_SUPORT_IP_NUM   8
static char	ip_url[MAX_SUPORT_IP_NUM][32];

//获取当前时间毫秒
unsigned int TimGetTicks();
const std::string get_ip_prot(int fd);
//LPCWSTR ConvertCharToLPCWSTR(const char* inputString);
//std::string ConvertWCHARToString(const WCHAR* wideString);
std::string ExtractIconName(const std::string& cssClassName);
char* GetExeFilePaths(char* sFilePath, const char* sFileName);
int GetFilePaths(const std::string& directory, std::map<std::string, std::string>& allFiles);
bool startsWith(const std::string& str, const std::string& prefix);
std::vector<std::string> split(const std::string& s, const char* delim);

#endif